import request from '@/utils/request'
// 菜单列表
export function getmenuslist() {
  return request({
    url: '/menus'
  })
}
// 菜单添加
export function addmenus(data) {
  return request({
    url: '/menus',
    method: 'post',
    data
  })
}
// 菜单详情
export function menusdetail(data) {
  return request({
    url: `/menus/${data.id}`,
    data
  })
}
// 菜单修改
export function editmenus(data) {
  return request({
    url: `/menus/${data.id}`,
    method: 'put',
    data
  })
}
// 菜单删除
export function delmenus(id) {
  return request({
    url: `/menus/${id}`,
    method: 'DELETE'
  })
}
